package com.trade.okxserver.operator;

import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;

public class StandardOperator extends VarianceOperator{

    @Override
    public BigDecimal executeInner(Object[] objects) throws Exception {
        // 方差
        BigDecimal variance = super.executeInner(objects);
        // 开平方
        return variance.sqrt(new MathContext(2));
    }
}
